page {
    background-color: #F6F6F6;
}

.background {
    position: fixed;
    left: 0;
    top: var(--window-top);
    width: 100%;
    height: 100%;
    background: #fe6b2e;
    z-index: -1;
    background-size: 100% auto;
    background-position: top;
    background-repeat: no-repeat;
}

.background image {
    width: 100%;
    height: 100%;
}

.rule-btn {
    position: fixed;
    right: 0;
    top: calc(32upx + var(--window-top));
    background: rgba(0,0,0,.5);
    color: rgba(255,255,255,0.85);
    padding: 16upx 24upx 16upx 32upx;
    border-radius: 999upx 0 0 999upx;
    font-size: 9pt;
}

.rule-bg {
    position: fixed;
    left: 0;
    top: var(--window-top);
    width: 100%;
    height: 100%;
    z-index: 9;
    background: rgba(0,0,0,.65);
    opacity: 0;
    visibility: hidden;
}

.rule-bg.show {
    opacity: 1;
    visibility: visible;
}

.rule-content {
    position: fixed;
    z-index: 10;
    left: 100upx;
    right: 100upx;
    top: calc(200upx + var(--window-top));
    max-height: calc(100vh - 400upx);
    background: #fff;
    border-radius: 10upx;
    padding: 24upx;
    opacity: 0;
    visibility: hidden;
    transition: 150ms;
}

.rule-content.show {
    visibility: visible;
    opacity: 1;
}

.rule-close {
    padding: 25upx;
    position: absolute;
    font-size: 0;
    bottom: -100upx;
    left: 50%;
    margin-left: -50upx;
}

.rule-close image {
    width: 50upx;
    height: 50upx;
    border-radius: 999upx;
}

.rule-text {
    max-height: calc(100vh - 400upx - 24upx * 2);
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 9pt;
    line-height: 1.5;
}

.rule-title {
    text-align: center;
    margin-bottom: 12upx;
}